package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 出库订单明细表
 */
@TableName("t_outboundInfo")
public class OutboundInfoBean {
    /** 出库订单明细ID */
    @TableId(value = "pk_outboundInfoId",type = IdType.AUTO)
    private Integer outboundInfoId;
    /** 出库订单外键id  */
    @TableField("fk_outboundOrderId")
    private Integer outboundOrderId;
    /** 商品外键id */
    @TableField("fk_stockId")
    private String stockId;
    /** 成交价 */
    @TableField("oi_price")
    private Integer price;
    /** 销售数量 */
    @TableField("oi_num")
    private Integer num;
    /** 出库订单实体 */
    @TableField(exist = false)
    private OutboundOrderBean outboundOrderBean;



    /** 商品实体 */
    @TableField(exist = false)
    private StockBean stockBean;

    public OutboundInfoBean(Integer outboundOrderId, String stockId, Integer price, Integer num) {
        this.outboundOrderId = outboundOrderId;
        this.stockId = stockId;
        this.price = price;
        this.num = num;
    }

    public OutboundInfoBean() {
    }

    public Integer getOutboundInfoId() {
        return outboundInfoId;
    }

    public void setOutboundInfoId(Integer outboundInfoId) {
        this.outboundInfoId = outboundInfoId;
    }

    public Integer getOutboundOrderId() {
        return outboundOrderId;
    }

    public void setOutboundOrderId(Integer outboundOrderId) {
        this.outboundOrderId = outboundOrderId;
    }

    public String getStockId() {
        return stockId;
    }

    public void setStockId(String stockId) {
        this.stockId = stockId;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public OutboundOrderBean getOutboundOrderBean() {
        return outboundOrderBean;
    }

    public void setOutboundOrderBean(OutboundOrderBean outboundOrderBean) {
        this.outboundOrderBean = outboundOrderBean;
    }

    public StockBean getStockBean() {
        return stockBean;
    }

    public void setStockBean(StockBean stockBean) {
        this.stockBean = stockBean;
    }

    @Override
    public String toString() {
        return "OutboundInfoBean{" +
                "outboundInfoId=" + outboundInfoId +
                ", outboundOrderId=" + outboundOrderId +
                ", stockId='" + stockId + '\'' +
                ", price=" + price +
                ", num=" + num +
                ", outboundOrderBean=" + outboundOrderBean +
                ", stockBean=" + stockBean +
                '}'+'\n';
    }
}
